package com.sxf.core.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @description: 是否是时间注解
 * @author: zhangyb@ccccit.com.cn 
 * @date: 2021年2月2日 上午8:49:46
 */
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = { IsDatetimeValidator.class })
public @interface IsDatetime {
	String message();

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

	String pattern() default "yyyy-MM-dd";
}
